const restify=require('restify')
const server=restify.createServer()

server.use(
    restify.plugins.acceptParser(server.acceptable),
    restify.plugins.queryParser(),
    restify.plugins.bodyParser()
)

const routes=require('./routes')(server)

server.listen(1000,()=>{
    console.log(server.name)
    console.log(server.url)
})